Skip to content

chore: add develop branch-protection ruleset and applier#10

Merged
DGINXREAL merged 1 commit into
developfrom
chore/develop-ruleset
Jun 12, 2026
Merged

chore: add develop branch-protection ruleset and applier#10
DGINXREAL merged 1 commit into
developfrom
chore/develop-ruleset

Conversation

@DGINXREAL

Copy link
Copy Markdown
Member

Adds the branch-protection ruleset for develop as version-controlled infra, plus a one-shot applier script.

Files

  • scripts/develop-ruleset.json — ruleset definition: require PR (0 approvals) + passing Lint & Test, block deletion/force-push. Bypass actors: GitHub Actions bot (Integration/15368) so the release workflow's CHANGELOG push to develop isn't blocked, and repo admin (RepositoryRole/5).
  • scripts/apply-develop-ruleset.sh — applies it via gh api.

Note

Rulesets are unavailable on free private repos (the API returns 403), so this is applied after making the repo public:

bash scripts/apply-develop-ruleset.sh

The 15368 GitHub Actions app id is correct for github.com; the script documents how to verify it in the UI if a release push is ever rejected.

Ruleset (to apply once the repo is public — rulesets are unavailable on
free private repos) requires PRs + a passing `Lint & Test` check on develop,
blocks deletion/force-push, and bypasses the GitHub Actions bot so the
release workflow's CHANGELOG push to develop keeps working.
@DGINXREAL
DGINXREAL merged commit 1853bf1 into develop Jun 12, 2026
1 check passed
@DGINXREAL
DGINXREAL deleted the chore/develop-ruleset branch June 12, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant